package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 政策规定
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_policy_require")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PolicyRequireModel {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;//标题
    private String content;//内容
    private Integer type;//1.互助保障2.帮扶救助 3.组织建设 4.法律援助

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期、
    public Timestamp createTime;//创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期、
    public Timestamp updateTime;//创建时间
}
